package com.ubi.core.framework.response;

import com.fasterxml.jackson.annotation.JsonProperty;

public class ErrorResponse<T> {

    @JsonProperty("code")
    private int errorCode;

    private String message;

    private T data;

    private String exceptionTrace;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getExceptionTrace() {
        return exceptionTrace;
    }

    public void setExceptionTrace(String exceptionTrace) {
        this.exceptionTrace = exceptionTrace;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

}
